package routers

import "api/src/bottle"

func bottle_res() []Res {
	return []Res{
		{Id: 200, Path: "bottle", Name: "获取瓶子数据", Func: bottle.BottleC.Search},
		{Id: 201, Path: "bottle/add", Method: "post", Name: "新增瓶子数据", Func: bottle.BottleC.Add},
		{Id: 202, Path: "bottle/edit", Method: "post", Name: "编辑瓶子数据", Func: bottle.BottleC.Edit},
		{Id: 203, Path: "bottle/remove", Name: "删除瓶子数据", Func: bottle.BottleC.Remove},
		{Id: 204, Path: "bottle/upload", Method: "post", Name: "上传瓶子照片", Func: bottle.BottleC.Upload, Params: "ext: jpg | mp4, b64: string, b64thumb: string"},
		{Id: 205, Path: "bottle/removeFile", Name: "删除瓶子照片", Func: bottle.BottleC.RemoveFile, Params: "filePath = image/1/2025/10/28/222610.jpg"},
		{Id: 206, Path: "bottle/stockIn", Name: "新瓶入库", Func: bottle.BottleC.StockIn, Params: "id=1,num=1"},
		{Id: 207, Path: "bottle/takeUp", Name: "上架", Func: bottle.BottleC.TakeUp},
		{Id: 208, Path: "bottle/dispose", Name: "售出", Func: bottle.BottleC.Dispose},
		{Id: 209, Path: "bottle/takeDown", Name: "下架返库", Func: bottle.BottleC.TakeDown},
		{Id: 210, Path: "bottle/abandon", Name: "丢弃", Func: bottle.BottleC.Abandon},
	}
}
